home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1599 / 1385 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.4 KB

  1. From: knarf@nasim.sta.sub.org (Frank Bartels)
  2. Subject: Re: removing a file
  3. Date: Wed, 11 May 1994 09:51:41 +0200 (MET DST)
  4. In-Reply-To: <9405101432.AA29834@pfsparc02.phil15.uni-sb.de> from "Benjamin Lorenz" at May 10, 94 04:32:33 pm
  5. Mime-Version: 1.0
  6.  
  7. You, Benjamin Lorenz wrote:
  8. > > In MiNT 1.10, you can only remove a file in a directory iff:
  9. > > 
  10. > > (1) you have write permission to the directory,
  11. > > (2) you own the file.
  12. >       ^^^^^^^^^^^^^^^^
  13. > That's right if the sticky-bit is set. Otherwise, I should be allowed 
  14. > to remove ANY file in the directory!
  15.  
  16. True.
  17.  
  18. > The problem is: I need write permission for the file. Somebody included
  19. > the check of the file modes in Mint 1.10.
  20. > But that is totally bullshit! I need write permission for the 
  21. > *directory*, and NOT for the *file* itself to be allowed to remove it. 
  22.  
  23. True again. (Though I think it's not the right place to call it
  24. b*******. ;)
  25.  
  26. > Try this in Mint 1.10:
  27. > % touch hello
  28. > % chmod 400 hello
  29. > % rm -f hello
  30. > rm: hello: access denied
  31.  
  32. This is the correct way:
  33.  
  34. % touch hello
  35. % chmod 400 hello
  36. % rm hello
  37. rm: override protection 400 for hello? y
  38. %
  39.  
  40. > I removed these checks from the Fdelete() call and everything works
  41. > better again! (including elm that creates it's lockfiles readonly).
  42.  
  43. Fine.
  44.  
  45. Bye,
  46. Knarf
  47. -- 
  48.     Frank Bartels       |      Fax/UUCP: + 49 89 5469593          | MiNT is
  49. knarf@nasim.sta.sub.org | Login: nuucp Index: /pub/ls-lR.nasim.gz | Now TOS!
  50.